package com.bb.flow.config.enumtype;

/**
 * @author bigbeard
 */
public enum ExecuteType {

    /**
     * 顺序执行
     */
    SEQUENTIAL_EXECUTE(1, "顺序执行"),
    /**
     * 并行执行
     */
    PARALLEL_EXECUTE(2, "并行执行");


    private final String name;
    private final int code;

    ExecuteType(int code, String name) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return super.toString().toUpperCase();
    }
}
